<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/common/kendocommon.jsp"%>
<!DOCTYPE html>
<html>
<link href="${basepath}/css/viewcss/main/customerInfo/memberinfo.css" rel="stylesheet" type="text/css"/>
<head>
    <title>客户基本信息</title>
    <meta charset="utf-8">
    <style>
    	body {
			padding: 0;
			font-size: 12px;
		}
		label{
			font-size:14px;
			margin:4px;
		}


    </style>
</head>
<script>
		<% String orderID=request.getParameter("orderID");
		System.out.println(orderID);
		%>
        $(document).ready(function() {
        	
        	$(".various").fancybox({
        		maxWidth	: 1000,
        		maxHeight	: 600,
        		fitToView	: false,
        		width		: '80%',
        		height		: '80%',
        		autoSize	: false,
        		closeClick	: false,
        		openEffect	: 'none',
        		closeEffect	: 'none'
        	});
        	
        	

	        //客户列表数据源
            customerDS = new kendo.data.DataSource({
                transport: {
                    read:  {
                        url: "${path}/business/getOrderDetailList",
                        dataType: "json",
                        data: function() {
					        return {
					        	orderID:"<%=orderID%>"
					        };
					    }
                    }
                },
                //group: [{field: "businessTypeCode"}],
                serverPaging: true,
                serverFiltering: true,
                pageSize: 10,
                schema: {
                	data:"data",
               		total:"total"
                }
            });

              		
      		
      		var gridhight=document.body.clientHeight-250;
            
            //客户列表
            $("#ordergrid").kendoGrid({
                dataSource: customerDS,
                height:gridhight,
                pageable: {
					refresh: true,
					pageSizes: true,
					buttonCount: 5,
					page: 1,
					pageSize: 10,
					pageSizes: [10, 20,30],
					messages: {
						display: "显示 {0}-{1} 共 {2} 项",
						empty: "没有数据",
						itemsPerPage: "每面显示数量",
						first: "第一页",
						last: "最后一页",
						next: "下一页",
						previous: "上一页"
					}
				},
                selectable: "multiple row",
                allowCopy: true,
                //editable: 'incell',
                columns: [ 
                    { field:"name", title: "商品名",width: "250px"},
                    { field:"quantity", title: "数量",width: "150px",editable: false},
                    { field:"unit", title: "单位",width: "150px",editable: false},                   
                    { field:"businessTypeCode", title: "业务代码",width: "250px",editable: false},
                 //   { field:"baby_name", title: "宝宝名字",width: "150px",editable: false},   
                 	{ field:"unitPrice", title: "单价",width: "250px"},
                 	{ field:"amount", title: "总金额",width: "250px"}
                     ]
            });
            
		
		
	})
	</script>
<body style="padding:0px">

    <div id="ordergrid" style="margin:2px"></div>
</body>
</html>
